package com.tbit.uqbike.client.util;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 16:58 2022/4/20
 */
public class MachineUtil {


    public static String getUid(String uid) {
        String[] strings = uid.split(":");
        List<String> list = new ArrayList<>();
        for (String s : strings) {
            list.add(0, s);
        }
        StringBuffer stringBuffer = new StringBuffer();
        //list.forEach(s -> stringBuffer.append(s).append(":"));
        //return stringBuffer.substring(0,stringBuffer.length()-1);
        list.forEach(s -> stringBuffer.append(s));
        return stringBuffer.toString();
    }

}
